package com.medical.data.constEnum;

import io.swagger.annotations.ApiModelProperty;


public enum FormEnum {

    //节点
    NODE(CommonEnum.ZERO.getCommonEnum(),CommonEnum.ZERO.getCommonEnum(),false,false,CommonEnum.ZERO.getCommonEnum()),

    Form(CommonEnum.ONE.getCommonEnum(),false,true,CommonEnum.ONE.getCommonEnum()),
    FOLLOWUP(CommonEnum.TOW.getCommonEnum(),false,true,CommonEnum.ONE.getCommonEnum()),
    ;

    @ApiModelProperty(value = "pid")
    private String pid;

    @ApiModelProperty(value = "表单的类型：0表示节点，1表示普通表单，2表示随访表单")
    private String type;

    @ApiModelProperty(value = "是否填写完整，默认为0表示未填写完整，1表示填写完整")
    private Boolean status;

    @ApiModelProperty(value = "是否可添加组件，1为可添加，0为不可添加")
    private Boolean isAddItem;

    @ApiModelProperty(value = "在哪里建立的：0表示从节点中建立，1表示从表单管理建立的")
    private String buildStatus;


     FormEnum(String type, Boolean status, Boolean isAddItem, String buildStatus){
        this.isAddItem = isAddItem;
        this.type = type;
        this.status = status;
         this.buildStatus = buildStatus;
    }

    FormEnum(String pid, String type, Boolean status, Boolean isAddItem, String buildStatus){
        this.pid = pid;
         this.isAddItem = isAddItem;
        this.type = type;
        this.status = status;
        this.buildStatus = buildStatus;
    }


    public String getPid() {
        return pid;
    }

    public String getType() {
        return type;
    }

    public Boolean getStatus() {
        return status;
    }

    public Boolean getIsAddItem() {
        return isAddItem;
    }

    public String getBuildStatus() {
        return buildStatus;
    }
}
